<?php     

echo form_open(current_url()); ?>
<?php echo $custom_error; ?>
<p><label for="USERNAME">USERNAME<span class="required">*</span></label>                                
<input id="USERNAME" type="text" name="USERNAME" value="<?php echo set_value('USERNAME'); ?>"  />
<?php echo form_error('USERNAME','<div>','</div>'); ?>
</p>


<p><label for="PASSWORD">PASSWORD<span class="required">*</span></label>                                
<input id="PASSWORD" type="text" name="PASSWORD" value="<?php echo set_value('PASSWORD'); ?>"  />
<?php echo form_error('PASSWORD','<div>','</div>'); ?>
</p>


<p><label for="ROLE">Hak<span class="required">*</span></label>                                
<select name="ROLE">
	<option <?php echo (set_value('ROLE') == 1) ? ("selected") : (""); ?> value="1">Admin</option>
	<option <?php echo (set_value('ROLE') == 2) ? ("selected") : (""); ?> value="2">User</option>
</select>
<?php echo form_error('ROLE','<div>','</div>'); ?>
</p>
                                    
<p>
        <?php echo form_submit(array("class"=>"btn-primary","value"=>"Simpan")); ?>
</p>

<?php echo form_close(); ?>
